/**
 * Created by Yun on 2016-09-11.
 */

export default {
  path: 'user',
  childRoutes: [
    {
      path: 'list',
      getComponent: (nextState, callback) => {
        require.ensure([], function (require) {
          callback(null, require('./List').default);
        });
      }
    },
    {
      path: ':id/earned',
      getComponent: (nextState, callback) => {
        require.ensure([], function (require) {
          callback(null, require('./EarnList').default);
        });
      }
    },
    {
      path:':id/salary',
      getComponent:(nextState,callback) =>{
        require.ensure([],function (require) {
          callback(null,require('./SalaryList').default);
        });
      }
    },
    {
      path:':id/withdraw',
      getComponent:(nextState,callback) =>{
        require.ensure([],function (require) {
          callback(null,require('./WithdrawList').default);
        });
      }
    },
  ],
}
